home *** CD-ROM | disk | FTP | other *** search
/ FM Towns: Free Software Collection 6 / FM Towns Free Software Collection 6.iso / ms_dos / txf / src / txfhelp.c < prev    next >
C/C++ Source or Header  |  1993-07-08  |  2KB  |  70 lines

  1. /***************
  2. *
  3. * g:\exe\txf\src\txfhelp.c
  4. */
  5. #include "txf.h"
  6.  
  7. void errexit(char *errmes)
  8. {
  9.     fprintf(stderr, "\nError:%s\n", errmes);
  10.     exit(1);
  11. }
  12.  
  13. #if !NOHELP
  14. void credit(char *name)
  15. {
  16.     int i = 0;
  17. #if !TXFL
  18.     char str[32][41]={
  19. #else
  20.     char str[28][41]={
  21. #endif
  22.     "[@filename]       commandfile",
  23.     "[-a]              All switch(es) init.",
  24.     "[-b [pos]]        notice Base position",
  25.     "[-c value]        Centering",
  26.     "[-d]              temporary Directory",
  27.     "[-e old [new]]    Exchange strings",
  28. #if !TXFL
  29.     "[-ep]             P-Exchange module",
  30.     "[-es]             S-Exchange module",
  31. #endif
  32.     "[-f value]        Format",
  33.     "[-h & -?]         show Help",
  34.     "[-i][filename]    Input filename",
  35.     "[-io wildcard]    In/Out filename",
  36.     "[-k{f|l} strings] Kinsoku characters",
  37.     "[-kq strings]     Quote characters",
  38.     "[-l maxpos]       set Line length",
  39. #if !TXFL
  40.     "[-lcx [wildcard]] use LCX module",
  41. #endif
  42.     "[-ml pos]         set Left  Margin",
  43.     "[-mr pos]         set Right Margin",
  44.     "[-n value]        No format",
  45. #if !TXFL
  46.     "[-npcut log npb]  find out NAPLPS data",
  47. #endif
  48.     "[-o filename2]    Output filename",
  49.     "[-p]              Prohibit halfsize gap",
  50.     "[-q]              understand Quotation",
  51.     "[-r]              add Return code",
  52.     "[-rb]             Remove .BAK file",
  53.     "[-rz]             Remove ctrl-Z",
  54.     "[-s character]    Separate character",
  55.     "[-t size]         set Tabsize",
  56.     "[-v[mode]]        set Viewmode",
  57.     "[-x]              eXpand tabcode",
  58.     "",""};
  59.  
  60.     fprintf(stderr, "OPTION:\n");
  61.     while (str[i][0] != NUL) {
  62.         fprintf(stderr, "%-40s%s\n", str[i], str[i+1]);
  63.         i += 2;
  64.     }
  65.  
  66.     exit(0);
  67. }
  68. #endif
  69.  
  70.